home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2584 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.1 KB  |  42 lines

  1. Newsgroups: comp.lang.c++
  2. Path: net.ricks.edu!usenet
  3. From: yourmail@ricks.edu (Your Name)
  4. Subject: Re: Two Stupid Newbie Questions
  5. Message-ID: <DLCF5y.6It@ricks.edu>
  6. Sender: usenet@ricks.edu (usenet)
  7. Organization: Ricks College
  8. X-Newsreader: Forte Free Agent 1.0.82
  9. References: <4d9qc7$m8t@news.fsu.edu>
  10. Date: Wed, 17 Jan 1996 21:48:38 GMT
  11.  
  12. colvin@xi.cs.fsu.edu (Joshua Colvin) wrote:
  13.  
  14.  
  15.  
  16.  
  17. >   Howdy all! Okay...quickees here:
  18. >     1) When I move an image around the screen I draw it in a position and
  19. >        then replace it using putimage(blah, XOR_PUT); but this creates a
  20. >        flickering effect. Is it becuase my computer's just too slow to make
  21. >        the movement appear smooth, or is there a better way to move an image
  22. >        around on the screen?
  23. >     2) When should I use malloc() as opposed to farmalloc() ?
  24. >Thanx. :)
  25. >Joshua Colvin
  26. >colvin@cs.fsu.edu
  27.  
  28. Hey Joshua,
  29.  
  30.     I think you are out of luck when it comes to using putimage().
  31. You might try loading the images into memory before displaying them.
  32.  
  33.     If you are using c++ I wouldn't use malloc at all.  Use new()
  34. instead.  It is much more efficient.
  35.  
  36. j
  37.  
  38.